package com.lxyk.yygh.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxyk.yygh.model.cmn.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @ClassName DictService
 * @Description TODO
 * @Author FJQ
 * @Date 2022/12/20 21:10
 * @Version 1.0
 **/
public interface DictService extends IService<Dict> {

    //根据数据id查询子数据列表
    List<Dict> findChlidData(Long id);

    //导出
    void exportData(HttpServletResponse response);

    //导入
    void importData(MultipartFile file);

    //根据 dictcode和value查询
    String getDictName(String dictCode, String value);

    //根据dictCode获取下级节点
    List<Dict> findByDictCode(String dictCode);
}
